using HmFramework;
using HmFramework.Log;
using HmFramework.Threading;
using System;
using System.Windows.Forms;

namespace CuteSprite.Eme.Server.Configuration
{
	/// <summary>Application main class.</summary>
	public class MainX
	{
		/// <summary>The main entry point for the application.</summary>
		[STAThread]
		public static void Main()
		{
			try
			{
				HmTrace.UseWinForm();

				new TimerX(s => Runtime.ReleaseMemory(), null, 5000, 10000);
			}
			catch (Exception ex)
			{
				HmTrace.WriteException(ex);
			}

			Application.EnableVisualStyles();
			Application.SetCompatibleTextRenderingDefault(false);
			Application.Run(new FrmMain());
		}
	}
}